package com.syni.mdd.sjb.common.component.utils.feign.service.mddAll;

import com.syni.mdd.sjb.common.component.utils.feign.constants.Constants;
import com.syni.mdd.sjb.common.component.utils.common.utils.RpcResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @className BusinessInfoRestService
 * @description TOO
 * @Author cfx
 * @DATE 2020/4/6 22:19
 * @VERSION 1.0
 **/
@FeignClient(value = Constants.MDD_DSP_API,path = Constants.MDD_DSP_API_PATH)
@RequestMapping("/apiBusinessInfo")
public interface BusinessInfoRestService {
    @GetMapping("/getBusinessInfo")
    RpcResponseVo getBusinessInfo(@RequestParam("businessId") Integer businessId);

    @PostMapping("/checkAliPayUid")
    RpcResponseVo checkAliPayUid(@RequestParam("alipayUser") String alipayUser,
                                 @RequestParam("alipayUid") String alipayUid);

    @PostMapping("/addBusinessAlipayInfo")
    RpcResponseVo addBusinessAlipayInfo(@RequestParam("addAlipayInfoVo") String addAlipayInfoVo);
}
